package cn.t.dto.order;

import cn.t.vo.order.CreateReplenishmentLineVO;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author l
 */
@Data
public class CreateReplenishmentRequest {

    @NotNull(message = "设备ID不能为空")
    private Long deviceId;

    @NotEmpty(message = "补货信息不能为空")
    @Valid
    private List<CreateReplenishmentLineVO> data;

}
